package org.jxc.dao;

import org.hibernate.SessionFactory;
import org.jxc.domain.Supplier;
import org.team4.dao.GenericDAO;

public class SupplierDAO extends GenericDAO<Supplier> {

	private static final long serialVersionUID = 376038639038947152L;
	private static SupplierDAO instance;
	
	public static SupplierDAO getInstance(SessionFactory sessionFactory) {
        if(instance == null) {
            instance =  new SupplierDAO(sessionFactory);
        }
        return instance;
    }
	
	private SupplierDAO(SessionFactory sessionFactory) {
		super(sessionFactory, Supplier.class);
	}
}